<script setup lang="ts">
//拼装处理内部图片
import { resources } from "@/store/store.ts";

type Data = string | undefined;

defineProps<{ img: Data; rotate?: number }>();
</script>

<template>
  <img
    :src="resources + img"
    :style="{ transform: rotate ? `rotate(${rotate}deg)` : '' }"
    lazy="loaded"
  />
</template>

<style scoped lang="less">
//img {
//  display: initial;
//}
</style>
